package com.sc.auction.auction.feign;

import com.sc.auction.common.pojo.User;
import com.sc.auction.common.util.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.*;

@Service
@FeignClient(name="auction-user")
public interface UserFeignService {

    @GetMapping(value = "/user/user/getUserById")
    public R getUserById(@RequestParam("id") Integer id);

    @GetMapping(value = "/user/user/getlogininfo")
    public R getLoginInfo(@RequestParam("token") String token);

    @PutMapping(value = "/user/user/update")
    public R update(@RequestBody User user);


}
